package com.websocket.event;

import java.security.Principal;

public class WebSocketReceiveEvent extends AbstractSubProtocolEvent {

    private final String message;

    public WebSocketReceiveEvent(Object source, Principal user, String message) {
        super(source, user);
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}
